package com.laiat.location.activity;



import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.laiat.location.R;
import com.laiat.location.oauth.OauthActivity;

public class SignInActivity extends Activity {

	private static final String TAG = SignInActivity.class.getSimpleName();
	
	private Button signInButton;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.signin);
        
        signInButton = (Button)findViewById(R.id.signInButton);
        
        signInButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				//FIXME:  start oauth process
				Intent intent = new Intent();
				intent.setClass(getApplicationContext(), OauthActivity.class);
				intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
				startActivity(intent);				
			}
		});
        
        
    }
	
}
